package com.briup.jd2511.web03.service.impl;

import com.briup.jd2511.web03.dao.EmpDao;
import com.briup.jd2511.web03.dao.impl.EmpDaoImpl;
import com.briup.jd2511.web03.entity.Emp;
import com.briup.jd2511.web03.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class EmpImpl implements EmpService {

    @Autowired
    EmpDao empDao;

    @Override
    public List<Emp> getAll() {
        // 调用dao层代码
        return empDao.selectAll();
    }
}
